home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 32
/
Amiga Format AFCD32 (Nov 1998, Issue 117).iso
/
-seriously_amiga-
/
programming
/
other
/
cgraphx
/
c
/
slib
/
cgfx_lib.c
next >
Wrap
C/C++ Source or Header
|
1998-08-10
|
549b
|
36 lines
#ifdef __SASC_650
#include <constructor.h>
#include <proto/exec.h>
void __regargs __autoopenfail(char *);
extern LONG __CGFXlibversion;
struct Library *CyberGfxBase;
static struct Library *LibBase;
CBMLIB_CONSTRUCTOR(OpenCGFX)
{
if (CyberGfxBase=LibBase=OpenLibrary("cybergraphics.library",__CGFXlibversion)) return 0;
__autoopenfail("cybergraphics.library");
return 1;
}
CBMLIB_DESTRUCTOR(CloseCGFX)
{
if (LibBase)
{
CloseLibrary (LibBase);
LibBase=CyberGfxBase=NULL;
}
}
#else
#error SAS/C 6.50 or newer required.
#endif